package com.jiumozhi.spring.annotation.process;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanFactoryPostProcessor;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
import org.springframework.core.Ordered;
import org.springframework.stereotype.Component;

/**
 * [简要描述]:
 * [详细描述]:
 *
 * @author ZouHaiBo
 * @version 1.0, 2021/1/15 11:05
 * @since JDK 1.8
 */
@Component
public class BeanFactoryProcessorOrderTest implements BeanFactoryPostProcessor, Ordered
{

	@Override
	public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException
	{
		System.out.println("============= Ordered invoke beanFactory =========");
	}

	@Override
	public int getOrder()
	{
		return 1;
	}
}
